#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :reverse_arr_33.py
# @Time      :2020/6/23 15:16
# @Author    :Administrator


def reverseArr(arr, d, n):
    return arr[d:] + arr[:d]


arr = [1, 2, 3, 4, 5, 6, 7]
print('翻转前:')
print(arr)
print('翻转后：')
print(reverseArr(arr,2,len(arr)))
